package ConvertedDemo;

import java.util.Map;
import java.util.Properties;
import java.util.Set;

public class proper01 {
    public static void main(String[] args) {
        Properties prop = new Properties();
        prop.put("奥特曼","怪兽");
        prop.put("画江湖","不良人");
        //bianli
        Set<Object> keys = prop.keySet();
        for (Object key : keys) {
            Object value = prop.get(key);
            System.out.println(key+"-" +value);
        }
        Set<Map.Entry<Object, Object>> entries = prop.entrySet();
        for (Map.Entry<Object, Object> entry : entries) {
            Object key = entry.getKey();
            Object value = entry.getValue();
            System.out.println(key+" "+value);
        }
    }
}
